;; arduino-pde.srt --- Templates for Arduino PDE or INO files.
;;
;; Copyright (C) 2012 Eric M. Ludlam
;;
;; Author: Eric M. Ludlam <eric@siege-engine.com>
;;
;; This program is free software; you can redistribute it and/or
;; modify it under the terms of the GNU General Public License as
;; published by the Free Software Foundation, either version 3 of the
;; License, or (at your option) any later version.

;; This program is distributed in the hope that it will be useful, but
;; WITHOUT ANY WARRANTY; without even the implied warranty of
;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
;; General Public License for more details.

;; You should have received a copy of the GNU General Public License
;; along with this program.  If not, see http://www.gnu.org/licenses/.

set mode "arduino-mode"
set escape_start "{{"
set escape_end "}}"

set comment_start  "/**"
set comment_end    " */"
set comment_prefix " *"

context file

template empty :time :user :file :cpp
"Fill an empty arduino file."
----
{{>:filecomment}}

void setup() {
  {{^}}

}

void loop() {

}

----

;; @TODO - Add templates to help use common shields or libraries:
;;  - Servos
;;  - Motor shield
;;  - tx/rx serial shields (bluetooth/xbee)
;;  - data logger


;; end